<!DOCTYPE html>
<html class="x-admin-sm">

<head>
  <meta charset="UTF-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
  <!-- <link rel="stylesheet" href="./css/font.css">
  <link rel="stylesheet" href="./css/xadmin.css">
  <link rel="stylesheet" href="./lib/layui/css/layui.css">
  <link rel="stylesheet" href=" https://www.layuicdn.com/layui/css/layui.css"> -->

  <link rel="stylesheet" href="./css/xadmin.css">
  <link rel="stylesheet" href="./lib/layui/css/layui.css">
  <!-- <script type="text/javascript" src="./js/xadmin.js"></script> -->
  <script src="./lib/axios.js"></script>
  <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
</head>

<body style="background-color: #fff;"class="layui-anim layui-anim-upbit">
  <div class="x-nav">
    <span class="layui-breadcrumb">
      <a href="">首页</a>
      <a href="">演示</a>
      <a>
        <cite>导航元素</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      onclick="location.reload()" title="刷新">
      <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
  </div>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">


      <form id="searchForm" class="layui-form" action="" style="display: flex;">

        <div class="layui-form-item">
          <label class="layui-form-label" style="width: 70px;">广告图描述</label>
          <div class="layui-input-inline">
            <input type="text" name="" required lay-verify="required" placeholder="请输入广告位名称" autocomplete="off"
              class="layui-input">
          </div>

        </div>
        <div class="layui-form-item">
          <label class="layui-form-label" style="width: 80px;">广告图位置</label>
          <div class="layui-input-block">
            <select id="select2" name="city" lay-verify="required">
              <option value=""></option>

            </select>
          </div>
        </div>




        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
          </div>
        </div>
      </form>


      <div style="display: flex;justify-content: space-between;">

        <div>
          <button id="add" type="button" class="layui-btn layui-btn-normal" style="width: 70px;">＋ 新增</button>

          <button id="export" type="button" class="layui-btn layui-btn-warm" style="width: 70px;">T 导出</button>
        </div>

        <div class="layui-btn-container">
          <button id="up" type="button" class="layui-btn layui-btn-sm layui-btn-primary"
            style="width: 40px;height: 40px;border-radius: 20px;">
            <i class="layui-icon layui-icon-up"></i>
          </button>
          <button id="F5" type="button" class="layui-btn layui-btn-sm layui-btn-primary"
            style="width: 40px;height: 40px;border-radius: 20px;">
            <i class="layui-icon layui-icon-refresh"></i>
          </button>
          <button type="button" class="layui-btn layui-btn-sm layui-btn-primary"
            style="width: 40px;height: 40px;border-radius: 20px;">
            <i class="layui-icon layui-icon-windows"></i>
          </button>

        </div>

      </div>



      <table class="layui-table" id="tabInfo">
        <thead>
          <tr>
            <th style="width: 20px;"><input type="checkbox"></th>
            <th style="width: 40px;">#</th>
            <th style="width: 40px;">广告图位</th>
            <th style="width: 40px;">广告图描述</th>
            <th style="width: 40px;">广告图</th>
            <th style="width: 40px;">广告图链接</th>
            <th style="width: 40px;">操作</th>
          </tr>

        </thead>
        <tbody id="tbody">
          <!-- <tr>
            <td style="width: 40px;"><input type="checkbox"></td>
            <td style="width: 40px;">1</td>
            <td style="width: 40px;">1</td>
            <td style="width: 40px;">1</td>
            <td style="width: 40px;"><img src="" alt=""></td>
            <td style="width: 40px;">1</td>
            <td style="width: 40px;">
              <div class="layui-btn-container">

                <button id="edit" type="button" class="layui-btn layui-btn-sm layui-btn-primary"
                  style="width: 40px;height: 40px;border-radius: 20px;background-color: #409eff;border:none;">
                  <i class="layui-icon layui-icon-edit" style="color: #fff;"></i>
                </button>
                <button id="del" type="button" class="layui-btn layui-btn-sm layui-btn-primary"
                  style="width: 40px;height: 40px;border-radius: 20px;background-color: #f56c6c;border:none;">
                  <i class="layui-icon layui-icon-delete" style="color: #fff;"></i>
                </button>

              </div>
            </td>
          </tr> -->
        </tbody>
      </table>

      <div id="page-box"></div>



    </div>
  </div>

  <form id="addForm" class="layui-form" action="" style="display: none;width: 400px;">

    <div class="layui-form-item">
      <label class="layui-form-label" required lay-verify="required" >广告位</label>
      <div class="layui-input-block" style="width:300px;">
        <select id="select1" name="advposname" lay-verify="required" placeholder="请选择广告位名称">
          <option value=""></option>

        </select>
      </div>
    </div>

    <div class="layui-form-item layui-form-text" style="width: 400px;">
      <label class="layui-form-label">广告位描述</label>
      <div class="layui-input-block">
        <textarea id="desc" name="advposdesc" type="text" placeholder="请输入广告位描述" class="layui-textarea"
          style="width: 300px;"></textarea>
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">广告图链接</label>
      <div class="layui-input-block">
        <input id="size" type="text" name="size" required lay-verify="required" placeholder="请输入广告图链接"
          autocomplete="off" class="layui-input" style="width: 300px;">
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">广告图</label>
      <div class="layui-input-block">
        <button type="button" class="layui-btn" id="test1">
          <i class="layui-icon">&#xe67c;</i>上传图片
        </button>
        <div id="img"></div>
      </div>

  </form>


  <form id="editForm" class="layui-form" action="" style="display:none;" lay-filter="editForm">

    <div class="layui-form-item">
      <label class="layui-form-label" style="width: 80px;">广告图位置</label>
      <div class="layui-input-block">
        <select id="select2"   lay-verify="required">
          <option value=""></option>

        </select>
      </div>
    </div>

    <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">广告图描述</label>
      <div class="layui-input-block">
        <textarea id="desc" name="advimgdesc" type="text" placeholder="请输入广告位描述" class="layui-textarea"
          style="width: 300px;"></textarea>
      </div>
    </div>



    <div class="layui-form-item" style="margin-top:20px ;">
      <label class="layui-form-label">广告图链接</label>
      <div class="layui-input-block">
        <input id="title" type="text" name="advimglink" required lay-verify="required" placeholder="请输入广告位名称"
          autocomplete="off" class="layui-input" style="width: 300px;">
      </div>
    </div>



    <div class="layui-form-item">
      <label class="layui-form-label">广告图</label>
      <div class="layui-input-block">
        <button type="button" class="layui-btn" id="test1">
          <i class="layui-icon">&#xe67c;</i>上传图片
        </button>
      </div>
    </div>

  </form>


  




</body>
<script lang="javascript" src="https://cdn.sheetjs.com/xlsx-0.19.3/package/dist/xlsx.full.min.js"></script>

<script src="./lib/layui/layui.js"></script>
<script src="./lib/layui/layui.all.js"></script>
<script src="./js/jquery.min.js"></script>
<script src="./js/common.js"></script>
<script src="./js/advimg.js"></script>


</html>